import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BlogComponent } from './blog.component';
import { ArticleCardComponent } from './widget/article-card/article-card.component';
import { ArticlePageComponent } from './widget/article-page/article-page.component';
import { RouterModule, Routes } from '@angular/router';
import { InfoBoxComponent } from './widget/info-box/info-box.component';

const routes: Routes = [
  {path: '', component: BlogComponent},
  {path: 'articlePage', component: ArticlePageComponent},

];
@NgModule({
  declarations: [BlogComponent,ArticleCardComponent,ArticlePageComponent],
  imports: [
    RouterModule.forChild(routes),
    CommonModule,
    InfoBoxComponent
  ],
  exports: [BlogComponent]
})
export class BlogModule { }
